package com.ljn.core.dto.common.utils.assmbler;

import com.ljn.core.dto.Project;
import com.ljn.core.dto.common.command.projectcommand.ProCommand;
import org.springframework.beans.BeanUtils;

/**
 * Created by liujunnan on 2017/11/15.
 */
public class ProjectAssmbler  {
    public static Project toProject(ProCommand proCommand) {
        Project project = new Project();
        BeanUtils.copyProperties(proCommand, project);
        return project;
    }
}
